#include <cstdio>
#include "rational.h"

int main() {
	Rational a(1, 2);
	Rational b(2);
	(a * b).print();
	(a / b).print();
	(a + b).print();
	(a - b).print();
	Rational c(a);
	c /= b;
	c.print();
	c *= b;
	c.print();
	c += b;
	c.print();
	c -= b;
	c.print();

	(c++).print();
	(++c).print();
	(c--).print();
	(--c).print();
}
